﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Report_List.aspx.cs" Inherits="AnyOffice.general.work_plan.manage.Report_List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css"/>
		<script type="text/javascript" src="/module/date_selector/popcalendar.js"></script>
		<script type="text/javascript" src="/aspnet_client/core/function.js"></script>
	<script type="text/javascript" language="javascript">
	    function open_month(report_id) {
	         
	        var mwidth = "600";
	        var mheight = "450";
	        var loc_x = parseInt((window.screen.width - mwidth) / 2);
	        var loc_y = parseInt((window.screen.height - mwidth) / 2);

	        var _oParameter = new Object();
	        _oParameter.dialogTitle = "月汇度查看";
	        _oParameter.openFile = "read_month.aspx?report_id=" + report_id + "&num=" + Math.random();

	        window.showModalDialog('shDialog.htm', _oParameter, 'dialogHeight:' + mheight + 'px;dialogWidth:' + mwidth + 'px;dialogLeft:' + loc_x + ';dialogTop:' + loc_y + ';help:no;status:no;scroll:yes;titlebar:no;toolbar:no');
 

	    }

	  
	    function CheckForm() {
	        var slt = document.getElementById("ddlProductName");
	        if (slt.value == "") {
	            alert("请选择所属项目！");
	            return (false);
	        }

	        return true;
	    }
		</script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main_div">
    <asp:Panel id="pnlResult" runat="server" >
			<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
				<TR>
					<TD class="Big"><IMG height="18" src="/images/menu/diary.gif" width="18" align="absMiddle"><SPAN class="big3">月度汇报查询结果</SPAN></TD>
				</TR>
			</TABLE>
			
				<asp:Repeater id="rptQuery" runat="server" EnableViewState="False">
					<HeaderTemplate>
						<table width="100%" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
							<tr class="TableHeader">
								<td nowrap align="center" width="30%">标题</td>
								<td nowrap align="center">月份</td>
								<td nowrap align="center">申请人</td>
								<td nowrap align="center">填写时间</td>								
								<td nowrap align="center">操作</td>
							</tr>
					</HeaderTemplate>
					<ItemTemplate>
						<tr class="TableLine1">
							<td>
								<a href="javascript:open_month('<%#Eval("ReportId")%>');"><%#Eval("Title")%></a>
							</td>
							<td nowrap align="center"><%#Eval("Year").ToString() +"-"+ Eval("Month").ToString()%></td>
							<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="CURSOR:hand"><%#Eval("UserName")%></u></td>
							<td nowrap align="center"><%#Convert.ToDateTime(Eval("ReportTime").ToString()).ToString("yyyy-MM-dd")%></td>
							<td nowrap align="center">
								<a href="javascript:open_month('<%#Eval("ReportId")%>');">点评</a>
							</td>						
						</tr>
					</ItemTemplate>	
					<AlternatingItemTemplate>
					<tr class="TableLine2">
							<td>
								<a href="javascript:open_month('<%#Eval("ReportId")%>');"><%#Eval("Title")%></a>
							</td>
							<td nowrap align="center"><%#Eval("Year").ToString() + "-" + Eval("Month").ToString()%></td>
							<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="CURSOR:hand"><%#Eval("UserName")%></u></td>
							<td nowrap align="center"><%#Convert.ToDateTime(Eval("ReportTime").ToString()).ToString("yyyy-MM-dd")%></td>
							<td nowrap align="center">
								<a href="javascript:open_month('<%#Eval("ReportId")%>');">点评</a>
							</td>						
						</tr>
					</AlternatingItemTemplate>
					<FooterTemplate>
						</table>
					</FooterTemplate>
				</asp:Repeater>
				<asp:Literal id="litMessage" runat="server"></asp:Literal>
				<BR>
				<DIV align="center"><INPUT class="BigButton" onClick="location='index1.aspx';" type="button" value="返回">
				</DIV>
			</asp:Panel>	
            </div>
    </form>
</body>
</html>
